<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>技能交换 - 社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #eff6ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .section {
            padding: 3rem 0;
        }
        
        .section-title {
            margin-bottom: 2rem;
            text-align: center;
        }
        
        .section-title h2 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        .section-title p {
            color: var(--secondary);
            max-width: 700px;
            margin: 0 auto;
        }
        
        .skill-card {
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .skill-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .skill-stats {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            color: var(--secondary);
            font-size: 0.85rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .stat-item i {
            font-size: 0.9rem;
        }
        
        .stat-item.likes i {
            color: var(--danger);
        }
        
        .stat-item.comments i {
            color: var(--primary);
        }
        
        .stat-item.views i {
            color: var(--secondary);
        }
        
        .stat-item.saves i {
            color: var(--warning);
        }
        
        /* 网格布局样式 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .grid-skill-image {
            height: 200px;
            position: relative;
            overflow: hidden;
        }
        
        .grid-skill-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .skill-card:hover .grid-skill-image img {
            transform: scale(1.05);
        }
        
        .grid-skill-info {
            padding: 1.25rem;
        }
        
        .skill-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .skill-description {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .skill-provider {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .provider-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 600;
        }
        
        /* 技能标签样式 */
        .skills-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .skill-tag {
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
        }
        
        .offering-tag {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }
        
        .seeking-tag {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
        }
        
        /* 列表布局样式 */
        .list-layout {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 3rem;
        }
        
        .list-skill-item {
            display: flex;
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .list-skill-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
        
        .list-skill-image {
            width: 220px;
            flex-shrink: 0;
            position: relative;
        }
        
        .list-skill-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .list-skill-info {
            flex-grow: 1;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }
        
        .list-skill-header {
            margin-bottom: 0.75rem;
        }
        
        .list-skill-description {
            color: var(--secondary);
            margin-bottom: 1rem;
            flex-grow: 1;
        }
        
        /* 大图布局样式 */
        .featured-layout {
            margin-bottom: 3rem;
        }
        
        .featured-skill {
            background-color: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .featured-image-container {
            position: relative;
            height: 400px;
        }
        
        .featured-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .featured-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            padding: 2rem;
            color: white;
        }
        
        .featured-skill-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .featured-skill-description {
            max-width: 700px;
            margin-bottom: 1rem;
        }
        
        .featured-stats {
            display: flex;
            gap: 1.5rem;
            color: rgba(255, 255, 255, 0.9);
        }
        
        /* 多图布局样式 */
        .multi-image-layout {
            margin-bottom: 3rem;
        }
        
        .multi-image-skill {
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .multi-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 4px;
            height: 300px;
        }
        
        .multi-images img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .multi-images img:first-child {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
        }
        
        .multi-image-info {
            padding: 1.25rem;
        }
        
        /* 无图技能样式 */
        .no-image-placeholder {
            width: 100%;
            height: 100%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 3rem;
        }
        
        /* 按钮样式 */
        .action-buttons {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-primary:hover {
            background-color: #2563eb;
            border-color: #2563eb;
        }
        
        .btn-outline-primary {
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .list-skill-item {
                flex-direction: column;
            }
            
            .list-skill-image {
                width: 100%;
                height: 200px;
            }
            
            .featured-image-container {
                height: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .multi-images {
                height: 250px;
            }
        }
        
        @media (max-width: 576px) {
            .section {
                padding: 2rem 0;
            }
            
            .grid-layout {
                grid-template-columns: 1fr;
            }
            
            .featured-image-container {
                height: 220px;
            }
            
            .featured-overlay {
                padding: 1rem;
            }
            
            .featured-stats {
                flex-wrap: wrap;
            }
            
            .multi-images {
                height: 200px;
            }
            
            .skill-stats {
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            
            .action-buttons {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-exchange-alt text-primary me-2"></i>技能交换平台
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">技能交换</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">发现人才</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">成功案例</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <main>
        <!-- 特色技能展示区 -->
        <section class="section featured-layout">
            <div class="container">
                <div class="section-title">
                    <h2>热门技能交换</h2>
                    <p>这些技能交换机会最受欢迎，参与度高，匹配成功率也最高</p>
                </div>
                
                <div class="featured-skill">
                    <div class="featured-image-container">
                        <img src="https://picsum.photos/1200/400?random=10" alt="摄影技能展示" class="img-fluid">
                        <div class="featured-overlay">
                            <div class="featured-skill-title">专业摄影技巧 <span class="badge bg-primary">热门</span></div>
                            <div class="skill-provider text-white">
                                <div class="provider-avatar">林</div>
                                <span>林小明 提供</span>
                            </div>
                            <div class="featured-skill-description">
                                提供专业摄影技巧指导，包括构图、用光和后期处理。希望学习基础视频剪辑和特效制作。
                            </div>
                            <div class="skills-tags">
                                <span class="skill-tag offering-tag">提供: 摄影</span>
                                <span class="skill-tag seeking-tag">寻求: 视频剪辑</span>
                            </div>
                            <div class="featured-stats">
                                <div class="stat-item likes">
                                    <i class="fas fa-heart"></i>
                                    <span>2.5k 点赞</span>
                                </div>
                                <div class="stat-item comments">
                                    <i class="fas fa-comment"></i>
                                    <span>328 评论</span>
                                </div>
                                <div class="stat-item views">
                                    <i class="fas fa-eye"></i>
                                    <span>15.6k 浏览</span>
                                </div>
                                <div class="stat-item saves">
                                    <i class="fas fa-bookmark"></i>
                                    <span>876 收藏</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 网格布局技能推荐 -->
        <section class="section bg-light">
            <div class="container">
                <div class="section-title">
                    <h2>最新技能交换</h2>
                    <p>刚发布的技能交换机会，寻找合适的匹配对象</p>
                </div>
                
                <div class="grid-layout">
                    <!-- 技能1 - 有单张图片 -->
                    <div class="skill-card">
                        <div class="grid-skill-image">
                            <img src="https://picsum.photos/600/400?random=1" alt="烹饪技能展示" class="img-fluid">
                        </div>
                        <div class="grid-skill-info">
                            <div class="skill-title">中式烹饪技巧</div>
                            <div class="skill-provider">
                                <div class="provider-avatar">张</div>
                                <span>张文静</span>
                            </div>
                            <div class="skill-description">
                                擅长川菜和粤菜烹饪，可教授家常菜和宴客菜做法。希望学习吉他基础和简单弹唱。
                            </div>
                            <div class="skills-tags">
                                <span class="skill-tag offering-tag">提供: 烹饪</span>
                                <span class="skill-tag seeking-tag">寻求: 吉他</span>
                            </div>
                            <div class="skill-stats">
                                <div class="stat-item likes">
                                    <i class="fas fa-heart"></i>
                                    <span>826</span>
                                </div>
                                <div class="stat-item comments">
                                    <i class="fas fa-comment"></i>
                                    <span>42</span>
                                </div>
                                <div class="stat-item views">
                                    <i class="fas fa-eye"></i>
                                    <span>3.5k</span>
                                </div>
                                <div class="stat-item saves">
                                    <i class="fas fa-bookmark"></i>
                                    <span>156</span>
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="btn btn-sm btn-primary">联系</button>
                                <button class="btn btn-sm btn-outline-primary">收藏</button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 技能2 - 无图片 -->
                    <div class="skill-card">
                        <div class="grid-skill-image">
                            <div class="no-image-placeholder">
                                <i class="fas fa-code"></i>
                            </div>
                        </div>
                        <div class="grid-skill-info">
                            <div class="skill-title">Web前端开发指导</div>
                            <div class="skill-provider">
                                <div class="provider-avatar">李</div>
                                <span>李思维</span>
                            </div>
                            <div class="skill-description">
                                资深前端工程师，可教授HTML/CSS/JavaScript和React框架。希望学习西班牙语基础。
                            </div>
                            <div class="skills-tags">
                                <div class="skill-tag offering-tag">提供: 编程</div>
                                <div class="skill-tag seeking-tag">寻求: 西班牙语</div>
                            </div>
                            <div class="skill-stats">
                                <div class="stat-item likes">
                                    <i class="fas fa-heart"></i>
                                    <span>1.2k</span>
                                </div>
                                <div class="stat-item comments">
                                    <i class="fas fa-comment"></i>
                                    <span>78</span>
                                </div>
                                <div class="stat-item views">
                                    <i class="fas fa-eye"></i>
                                    <span>5.7k</span>
                                </div>
                                <div class="stat-item saves">
                                    <i class="fas fa-bookmark"></i>
                                    <span>231</span>
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="btn btn-sm btn-primary">联系</button>
                                <button class="btn btn-sm btn-outline-primary">收藏</button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 技能3 - 有单张图片 -->
                    <div class="skill-card">
                        <div class="grid-skill-image">
                            <img src="https://picsum.photos/600/400?random=3" alt="健身技能展示" class="img-fluid">
                        </div>
                        <div class="grid-skill-info">
                            <div class="skill-title">健身指导与塑形计划</div>
                            <div class="skill-provider">
                                <div class="provider-avatar">王</div>
                                <span>王大力</span>
                            </div>
                            <div class="skill-description">
                                专业健身教练，提供个性化训练计划和饮食建议。希望学习钢琴入门和音乐理论。
                            </div>
                            <div class="skills-tags">
                                <div class="skill-tag offering-tag">提供: 健身</div>
                                <div class="skill-tag seeking-tag">寻求: 钢琴</div>
                            </div>
                            <div class="skill-stats">
                                <div class="stat-item likes">
                                    <i class="fas fa-heart"></i>
                                    <span>954</span>
                                </div>
                                <div class="stat-item comments">
                                    <i class="fas fa-comment"></i>
                                    <span>56</span>
                                </div>
                                <div class="stat-item views">
                                    <i class="fas fa-eye"></i>
                                    <span>4.2k</span>
                                </div>
                                <div class="stat-item saves">
                                    <i class="fas fa-bookmark"></i>
                                    <span>189</span>
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="btn btn-sm btn-primary">联系</button>
                                <button class="btn btn-sm btn-outline-primary">收藏</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 多图布局技能推荐 -->
        <section class="section multi-image-layout">
            <div class="container">
                <div class="section-title">
                    <h2>多元技能展示</h2>
                    <p>这些技能拥有丰富的作品展示，提供更全面的参考</p>
                </div>
                
                <div class="multi-image-skill">
                    <div class="multi-images">
                        <img src="https://picsum.photos/600/800?random=20" alt="手工陶艺作品1" class="img-fluid">
                        <img src="https://picsum.photos/600/400?random=21" alt="手工陶艺作品2" class="img-fluid">
                        <img src="https://picsum.photos/600/400?random=22" alt="手工陶艺作品3" class="img-fluid">
                    </div>
                    <div class="multi-image-info">
                        <div class="skill-title">手工陶艺制作教学</div>
                        <div class="skill-provider">
                            <div class="provider-avatar">赵</div>
                            <span>赵晓雨</span>
                        </div>
                        <div class="skill-description">
                            专业陶艺师，可教授手工制陶、拉坯、上釉和烧制技巧。希望学习数字绘画和插画技巧。
                        </div>
                        <div class="skills-tags">
                            <div class="skill-tag offering-tag">提供: 陶艺</div>
                            <div class="skill-tag offering-tag">提供: 手工</div>
                            <div class="skill-tag seeking-tag">寻求: 绘画</div>
                            <div class="skill-tag seeking-tag">寻求: 插画</div>
                        </div>
                        <div class="skill-stats">
                            <div class="stat-item likes">
                                <i class="fas fa-heart"></i>
                                <span>1.5k 点赞</span>
                            </div>
                            <div class="stat-item comments">
                                <i class="fas fa-comment"></i>
                                <span>98 评论</span>
                            </div>
                            <div class="stat-item views">
                                <i class="fas fa-eye"></i>
                                <span>7.2k 浏览</span>
                            </div>
                            <div class="stat-item saves">
                                <i class="fas fa-bookmark"></i>
                                <span>342 收藏</span>
                            </div>
                        </div>
                        <div class="action-buttons">
                            <button class="btn btn-sm btn-primary">联系</button>
                            <button class="btn btn-sm btn-outline-primary">收藏</button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 列表布局技能推荐 -->
        <section class="section bg-light list-layout">
            <div class="container">
                <div class="section-title">
                    <h2>热门生活技能</h2>
                    <p>这些实用生活技能需求量大，容易找到匹配的交换对象</p>
                </div>
                
                <!-- 技能1 - 有图片 -->
                <div class="list-skill-item">
                    <div class="list-skill-image">
                        <img src="https://picsum.photos/400/600?random=30" alt="语言教学展示" class="img-fluid">
                    </div>
                    <div class="list-skill-info">
                        <div class="list-skill-header">
                            <div class="skill-title">英语口语交流练习</div>
                            <div class="skill-provider">
                                <div class="provider-avatar">陈</div>
                                <span>陈思远</span>
                            </div>
                        </div>
                        <div class="list-skill-description">
                            英语专业八级，曾在英国留学3年，可提供口语练习和发音纠正。擅长日常对话和商务英语。希望学习摄影技巧，特别是人像摄影和后期修图。
                        </div>
                        <div class="skills-tags">
                            <div class="skill-tag offering-tag">提供: 英语口语</div>
                            <div class="skill-tag offering-tag">提供: 商务英语</div>
                            <div class="skill-tag seeking-tag">寻求: 摄影</div>
                            <div class="skill-tag seeking-tag">寻求: 修图</div>
                        </div>
                        <div class="skill-stats">
                            <div class="stat-item likes">
                                <i class="fas fa-heart"></i>
                                <span>2.1k 点赞</span>
                            </div>
                            <div class="stat-item comments">
                                <i class="fas fa-comment"></i>
                                <span>156 评论</span>
                            </div>
                            <div class="stat-item views">
                                <i class="fas fa-eye"></i>
                                <span>9.8k 浏览</span>
                            </div>
                            <div class="stat-item saves">
                                <i class="fas fa-bookmark"></i>
                                <span>543 收藏</span>
                            </div>
                        </div>
                        <div class="action-buttons">
                            <button class="btn btn-sm btn-primary">联系</button>
                            <button class="btn btn-sm btn-outline-primary">收藏</button>
                        </div>
                    </div>
                </div>
                
                <!-- 技能2 - 无图片 -->
                <div class="list-skill-item">
                    <div class="list-skill-image">
                        <div class="no-image-placeholder">
                            <i class="fas fa-music"></i>
                        </div>
                    </div>
                    <div class="list-skill-info">
                        <div class="list-skill-header">
                            <div class="skill-title">吉他演奏与歌曲创作</div>
                            <div class="skill-provider">
                                <div class="provider-avatar">刘</div>
                                <span>刘音乐</span>
                            </div>
                        </div>
                        <div class="list-skill-description">
                            专业吉他手，10年演奏经验，擅长流行、民谣和布鲁斯风格。可教授吉他技巧和简单的歌曲创作方法。希望学习视频拍摄和剪辑，特别是音乐MV制作。
                        </div>
                        <div class="skills-tags">
                            <div class="skill-tag offering-tag">提供: 吉他</div>
                            <div class="skill-tag offering-tag">提供: 作曲</div>
                            <div class="skill-tag seeking-tag">寻求: 视频拍摄</div>
                            <div class="skill-tag seeking-tag">寻求: MV制作</div>
                        </div>
                        <div class="skill-stats">
                            <div class="stat-item likes">
                                <i class="fas fa-heart"></i>
                                <span>1.8k 点赞</span>
                            </div>
                            <div class="stat-item comments">
                                <i class="fas fa-comment"></i>
                                <span>124 评论</span>
                            </div>
                            <div class="stat-item views">
                                <i class="fas fa-eye"></i>
                                <span>8.5k 浏览</span>
                            </div>
                            <div class="stat-item saves">
                                <i class="fas fa-bookmark"></i>
                                <span>432 收藏</span>
                            </div>
                        </div>
                        <div class="action-buttons">
                            <button class="btn btn-sm btn-primary">联系</button>
                            <button class="btn btn-sm btn-outline-primary">收藏</button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 页面加载完成后的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            // 为所有技能卡片添加点击事件，跳转到详情页
            const skillCards = document.querySelectorAll('.skill-card, .list-skill-item, .featured-skill, .multi-image-skill');
            skillCards.forEach(card => {
                card.addEventListener('click', function(e) {
                    // 如果点击的是按钮，则不触发卡片跳转
                    if (e.target.closest('.btn')) {
                        return;
                    }
                    
                    const skillTitle = this.querySelector('.skill-title, .featured-skill-title').textContent.trim().split(' ')[0];
                    alert(`查看「${skillTitle}」的详细信息（实际应用中会跳转到技能详情页）`);
                });
            });
            
            // 收藏按钮交互
            const saveButtons = document.querySelectorAll('.btn-outline-primary');
            saveButtons.forEach(button => {
                button.addEventListener('click', function(e) {
                    e.stopPropagation();
                    if (this.textContent.includes('收藏')) {
                        this.innerHTML = '<i class="fas fa-check"></i> 已收藏';
                        this.classList.remove('btn-outline-primary');
                        this.classList.add('btn-success');
                    } else {
                        this.innerHTML = '收藏';
                        this.classList.remove('btn-success');
                        this.classList.add('btn-outline-primary');
                    }
                });
            });
            
            // 联系按钮交互
            const contactButtons = document.querySelectorAll('.btn-primary');
            contactButtons.forEach(button => {
                button.addEventListener('click', function(e) {
                    e.stopPropagation();
                    const skillTitle = this.closest('.skill-card, .list-skill-item, .multi-image-skill')
                        .querySelector('.skill-title').textContent;
                    const providerName = this.closest('.skill-card, .list-skill-item, .multi-image-skill')
                        .querySelector('.skill-provider span').textContent;
                    alert(`正在联系${providerName}，咨询「${skillTitle}」的技能交换详情`);
                });
            });
            
            // 为统计数据项添加悬停效果
            const statItems = document.querySelectorAll('.stat-item');
            statItems.forEach(item => {
                item.addEventListener('mouseenter', function() {
                    this.style.transform = 'scale(1.1)';
                    this.style.transition = 'transform 0.2s ease';
                });
                
                item.addEventListener('mouseleave', function() {
                    this.style.transform = 'scale(1)';
                });
            });
        });
    </script>
</body>
</html>
    
